package com.gaohe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaohe.pojo.Tag;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TagMapper extends BaseMapper<Tag> {
    //方案一：注解
    //方案二：xml映射文件
    @Select("select distinct type from sys_tag where is_deleted = 0")
    List<String> listTagType();
}
